Optimal. Leaf size=220 \[ \frac {2 (b c-a d) \tan (e+f x) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \Pi \left (\frac {2 d}{c+d};\sin ^{-1}\left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right )|\frac {2 b}{a+b}\right )}{c f (c+d) \sqrt {-\tan ^2(e+f x)} \sqrt {a+b \sec (e+f x)}}-\frac {2 \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{c f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.24, antiderivative size = 220, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {3926, 3784, 3973} \[ \frac {2 (b c-a d) \tan (e+f x) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \Pi \left (\frac {2 d}{c+d};\sin ^{-1}\left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right )|\frac {2 b}{a+b}\right )}{c f (c+d) \sqrt {-\tan ^2(e+f x)} \sqrt {a+b \sec (e+f x)}}-\frac {2 \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{c f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3784
Rule 3926
Rule 3973
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b \sec (e+f x)}}{c+d \sec (e+f x)} \, dx &=\frac {a \int \frac {1}{\sqrt {a+b \sec (e+f x)}} \, dx}{c}+\frac {(b c-a d) \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx}{c}\\ &=-\frac {2 \sqrt {a+b} \cot (e+f x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{c f}+\frac {2 (b c-a d) \Pi \left (\frac {2 d}{c+d};\sin ^{-1}\left (\frac {\sqrt {1-\sec (e+f x)}}{\sqrt {2}}\right )|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sec (e+f x)}{a+b}} \tan (e+f x)}{c (c+d) f \sqrt {a+b \sec (e+f x)} \sqrt {-\tan ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 4.59, size = 225, normalized size = 1.02 \[ \frac {4 \cos ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {\frac {\cos (e+f x)}{\cos (e+f x)+1}} \sqrt {\frac {a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} \sqrt {a+b \sec (e+f x)} \left (2 a \left (c^2-d^2\right ) \Pi \left (-1;\sin ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )-\left (c (a-b) (c+d) F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )\right )+2 d (a d-b c) \Pi \left (\frac {c-d}{c+d};\sin ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )\right )}{c f (c-d) (c+d) (a \cos (e+f x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {b \sec \left (f x + e\right ) + a}}{d \sec \left (f x + e\right ) + c}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.69, size = 443, normalized size = 2.01 \[ -\frac {2 \sqrt {\frac {b +a \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \left (1+\cos \left (f x +e \right )\right )^{2} \left (\EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) a \,c^{2}+\EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) a c d -\EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) b \,c^{2}-\EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) b c d -2 \EllipticPi \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \frac {c -d}{c +d}, \sqrt {\frac {a -b}{a +b}}\right ) a \,d^{2}+2 \EllipticPi \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \frac {c -d}{c +d}, \sqrt {\frac {a -b}{a +b}}\right ) b c d -2 \EllipticPi \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, -1, \sqrt {\frac {a -b}{a +b}}\right ) a \,c^{2}+2 \EllipticPi \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, -1, \sqrt {\frac {a -b}{a +b}}\right ) a \,d^{2}\right ) \left (-1+\cos \left (f x +e \right )\right )}{f \left (b +a \cos \left (f x +e \right )\right ) \sin \left (f x +e \right )^{2} c \left (c -d \right ) \left (c +d \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {b \sec \left (f x + e\right ) + a}}{d \sec \left (f x + e\right ) + c}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}}{c+\frac {d}{\cos \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a + b \sec {\left (e + f x \right )}}}{c + d \sec {\left (e + f x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________